package com.qm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qm.pojo.Cart;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

/**
 @author james
 @create 2021-04-29 19:56
 */
public interface CartMapper extends BaseMapper<Cart> {
    @Update("update tb_cart set num=#{num},update=#{date} where id=#{id}")
    void updateCartNum(Long id, int num, Date date);
}
